package com.jiang.action;

import com.jiang.vo.News;
import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class ValidateFrameAction extends ActionSupport{

	private News news;

	public News getNews() {
		return news;
	}

	public void setNews(News news) {
		this.news = news;
	}
	
	@Override
	public void validate() {
		
		System.out.println("配置文件去执行验证，也执行了validate方法!");
	
	}
	
	public String add()  {
		System.out.println("执行增加的方法!");
		return NONE;
	}
	
	
}
